home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Hardware / Mac OS USB DDK / Mac OS USB DDK 1.4.1 / Examples / USBSampleStorageDriver / StorageDeviceConfiguration.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-25  |  1.3 KB  |  43 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        StorageDeviceConfiguration.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  9.  
  10. */
  11.  
  12. #ifndef __SAMPLESTORAGEDEVICEID__
  13. #define __SAMPLESTORAGEDEVICEID__
  14.  
  15. #include <USB.h>
  16.  
  17. // The values for the device that this driver is being built for
  18. // need to be enetered here before the driver will build
  19. enum
  20. {
  21.     kDriverVendorID         = Your vendor number,        // USB Vendor ID
  22.     kDriverProductID    = Your device number,        // USB Product ID.
  23.     kDriverClassID        = kUSBMassStorageClass, 
  24.     kDriverSubclassID    = Your device subclass
  25. };
  26. // UnitTable name of this driver
  27. #define kDriverNameString    "\pSampleStorageDriver"
  28.  
  29. // The flag to indicate if this device is manual ejectable.
  30. // This flag only needs to be set if the device does not respond
  31. // with an error to the PreventMediaRemoval command or if the device
  32. // does not respond with an error to the eject command.
  33. #define kDeviceIsManualEject    false
  34.  
  35. // This only needs to be set if the device has less than 6 bytes
  36. // of inquiry data. 
  37. #define kDeviceMaxInquiryCount    255
  38.  
  39. // This needs to be set if the device is subclass other than 4 (UFI)
  40. // that supports floppy disk media
  41. #define kDriveSupportsFloppyDisk false
  42.  
  43. #endif /* __SAMPLESTORAGEDEVICEID__ */